import axios from 'axios'

const service = axios.create({
    baseURL:'XXXX',
    timeout:5000,
})

service.interceptors.request.use((config)=>{
    console.log(config)
    return config
},(error)=>{
    console.log(error)
    return Promise.reject(error)
})

service.interceptors.response.use((config)=>{
    console.log(config)
    return config
},(error)=>{
    console.log(error)
    return Promise.reject(error)
})

export default service